package com.example.myapplication.api;

import com.example.myapplication.entity.BaseResponse;
import com.example.myapplication.entity.Login;
import com.example.myapplication.entity.UserDetail;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface HttpApiService {
    @GET("login/cellphone")
    Call<Login> login(@Query("phone") String phone,
                      @Query("password") String password );


    @GET("user/account")
    Call<UserDetail> getUserDetail(@Query("cookie") String cookie);


}
